<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<%@ page import="com.oss.service.system.CacheService"%>
<%
	request.setAttribute("rootTags", CacheService.getRootTags());
%>
<ul>
	<c:forEach var="tag" items="${rootTags}">
		<li>${tag.name}&nbsp;&nbsp;<a
			href="<c:url value="/admin/editTag.do?id=${tag.id}" />"><img
			src="<c:url value="/images/edit.png" />" /></a> &nbsp;&nbsp;<a
			href="<c:url value="/admin/addTag.do?pid=${tag.id}"/>"><img
			src="<c:url value="/images/add.png" />" /></a>
		<ul>
			<c:forEach var="childTag" items="${tag.children}">
				<li><a href="<c:url value="/admin/tag.do?id=${childTag.id}" />">${childTag.name}</a>
				&nbsp;<a
					href="<c:url value="/admin/editTag.do?id=${childTag.id}" />"><img src="/images/edit.png" /></a> <a
					href="<c:url value="/admin/deleteTag.do?id=${childTag.id}" />"><img src="/images/delete.png" /></a> &nbsp;&nbsp;<a
					href="<c:url value="/admin/addProject.do?tid=${childTag.id}" />"><img src="/images/add.png" /></a></li>
			</c:forEach>
		</ul>
		</li>
	</c:forEach>
</ul>
